package cn.pomit.springbootwork.oauthauth.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pomit.springbootwork.oauthauth.domain.UserInfo;
import cn.pomit.springbootwork.oauthauth.mapper.UserInfoMapper;

@Service
public class UserInfoService {
	@Autowired
	UserInfoMapper userInfoMapper;
	public UserInfo getUserInfoByUserName(String userName){
		return userInfoMapper.findByUserName(userName);
	}
	
	public List<UserInfo> page(int page, int size){
		return userInfoMapper.testPageSql(page, size);
	}
	
	public List<UserInfo> testTrimSql(UserInfo userInfo){
		return userInfoMapper.testTrimSql(userInfo);
	}
}
